
/*
http://www.cybunk.com/processing/
Pollock Network
by Samuel Huron

*/

int w = 400;
int h = w;
float  x2=0;
float y2=0;
//


void setup() {
  size(w,h);
  background(255);
  smooth();
}

void draw() {
  smooth();
  //noFill();
  if (mousePressed == true) {
    fill(255);
    stroke(255);
  }
  else {
    stroke(0);
    fill(0);
  }

  float test1=random(0,30);
  float test=random(0,test1);
  float largeur=random(1,test);
  float x1=random(0,w);
  float y1=random(0,w);
  //
  ellipse(x1,y1 , largeur, largeur);
  strokeWeight(random(0,largeur/5));
  //
  line (x1,y1,mouseX,mouseY);
  x2=x1;
  y2=y1;
}
